Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit test for fips metadata attribute in enroll/checkin #4514

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

michel-laterman
Copy link
Contributor

What is the problem this PR solves?

Add unit tests as a sanity check to make sure that fleet-server is able to handle the new fips metadata attribute.

fleet-server uses json.RawMessage when interacting with local metadata (in the enroll and checkin endpoints) as it just needs to compare byte values to see if the agent doc needs to be changed. The new tests verify that local metadata changes are propagated as expected.

Design Checklist

  • I have ensured my design is stateless and will work when multiple fleet-server instances are behind a load balancer.
  • I have or intend to scale test my changes, ensuring it will work reliably with 100K+ agents connected.
  • I have included fail safe mechanisms to limit the load on fleet-server: rate limiting, circuit breakers, caching, load shedding, etc.

@michel-laterman michel-laterman added Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team tech debt backport-8.18 Automated backport to the 8.18 branch backport-9.0 Automated backport to the 9.0 branch labels Feb 25, 2025
@michel-laterman michel-laterman requested a review from a team as a code owner February 25, 2025 21:11
Copy link

Copy link
Contributor

@blakerouse blakerouse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the added testing.

@michel-laterman michel-laterman merged commit ba68a24 into elastic:main Feb 26, 2025
10 checks passed
@michel-laterman michel-laterman deleted the add-checkin-fips-test branch February 26, 2025 16:33
mergify bot pushed a commit that referenced this pull request Feb 26, 2025
mergify bot pushed a commit that referenced this pull request Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-8.18 Automated backport to the 8.18 branch backport-9.0 Automated backport to the 9.0 branch Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team tech debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants